<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%orders_coupons_history}}".
 *
 * @property integer $id
 * @property integer $orders_id
 * @property integer $coupons_id
 * @property integer $customer_coupons_id
 * @property string $amount
 * @property integer $create_at
 */
class OrdersCouponsHistory extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%orders_coupons_history}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['orders_id', 'coupons_id', 'customer_coupons_id', 'create_at'], 'integer'],
            [['amount'], 'number'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', 'ID'),
            'orders_id' => Yii::t('zhtfrontend', 'Orders ID'),
            'coupons_id' => Yii::t('zhtfrontend', 'Coupons ID'),
            'customer_coupons_id' => Yii::t('zhtfrontend', 'Customer Coupons ID'),
            'amount' => Yii::t('zhtfrontend', 'Amount'),
            'create_at' => Yii::t('zhtfrontend', 'Create At'),
        ];
    }
}
